﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataPa.aspx.cs" Inherits="WebTest.ControlTest.DataPa" %>
<%@ Register TagPrefix="cc1" Namespace="ARS.Control.Custom.DataPaging.Widget" Assembly="ARS" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../Scripts/easydialog/easydialog.min.js" type="text/javascript"></script>
    <link href="../Scripts/easydialog/easydialog.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.11.0.min.js" type="text/javascript"></script>
    <script src="../Scripts/DataPagingSearch.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="DataPaging_SearchPanel">
             <asp:TextBox ID="a" runat="server" class="dp_search"></asp:TextBox>
        </div>
        <input id="Button2" type="button" onclick="search()" value="搜索" />
<%--        <asp:Panel ID="DataPaging_SearchPanel" runat="server">
            <asp:DropDownList ID="DropDownList1" runat="server" DataTextField="RealUMS_RoleName" 
                DataValueField="Id">
            </asp:DropDownList>
            <asp:TextBox ID="beizhu" runat="server"  class="where"></asp:TextBox>
            <br />
            <asp:TextBox ID="type" runat="server" class="where"></asp:TextBox>
            <br />
            <asp:Button ID="Button2" runat="server" Text="Button" onclick="Button2_Click" />
        </asp:Panel>--%>

        <input id="Button3" type="button" value="升" onclick="NameSort(1)" />
        <input id="Button4" type="button" value="降" onclick="NameSort(0)" />
        <cc1:DataPaging ID="DataPaging1" runat="server" >
            <AttrHtmlTable THeadTrHtml="<td>1a</td><td>2c</td><td>3f</td>">
                <td><input id="Checkbox1" type="checkbox" />{{FieldName-UserName}}</td><td>{{FieldName-UserName}}</td><td>{{FieldName-UserName}}</td>
            </AttrHtmlTable>

            <AttrOperat  ColumnName="<td>编辑</td>" IsHasOperat="true">
                <td><a href="javascript:void(0)" onclick="DeleteData('{0}')" >删除</a><a href="javascript:void(0)" onclick="DataPaging_Operat.ExecuteOperat('{0}',0,'UMS_RoleName=czq')">别名</a></td>
            </AttrOperat>
            <AttrHtmlFanye>
                <a href='' >首页</a> <a href='javascript:void(0)' onclick='DataPaging_Operat.PagePrevious()' >上</a> <a href='javascript:void(0)' onclick='DataPaging_Operat.PageNext()' >下</a> <a href='' >末尾</a>
                <span>第{{PageIndex}}/{{ResultPages}}页 共{{ResultCount}}条</span>
<input id="Text_page" type="text" /><input id="Button1" type="button" value="button" onclick="DataPaging_Operat.GoToPageById('Text_page')" />
            </AttrHtmlFanye>

        </cc1:DataPaging>
      
      

        <br />
        </div>
    </form>
</body>
</html>
<script  type="text/javascript">

    function search() {
        DataPaging_Operat.SearchDiv();
    }

    function NameSort(index) {
        DataPaging_Operat.OrderIndex(index);
    }

    ;

//    $("#Button2").click(function () {
//        var s = GetSearchWhere();
//        alert(s);
//    });
    
    $(function () {
        //alert($('input').length);
    });

    DataPaging_Operat.RefreshCallBack = function () {
        //alert(22);
    };



</script>